//跨域中间件
const cors = require("cors")

module.exports = cors({
  // 当前端axios配置了withCredentials，需要设置origin地址和credentials
  changeOrigin: true,
  credentials: true,
  origin: 'http://localhost:8080'
})
